<?php
require_once 'modules/home/const.inc';
class Helper_Statistic extends Zend_Controller_Action_Helper_Abstract
{
    public function getUserStatistic($uid) {
        $statisticModel = AppGlobal::loadModel('Statistics', 'home');
        $user_statistic = $statisticModel->get_user_statistic($uid);

        return $user_statistic;
    }

    public function setUserStatistic($uid, $arr_info) {
        $statisticModel = AppGlobal::loadModel('Statistics', 'home');
        return $statisticModel->set_user_statistic($uid, $arr_info);
    }
    
    public function changeUserStatistic($str_uid, $col_name, $value) {
        $statisticModel = AppGlobal::loadModel('Statistics', 'home');
        return $statisticModel->change_user_statistic($str_uid, $col_name, $value);
    }    
}

